<template>
  <div>
    <h5>我是接收方组件，下面是接收到的信息</h5>
    <span>{{name}}</span>
  </div>
</template>
<script>
export default {
  name: 'Brother',
  data () {
    return {
      name: "初始数据"
    }
  },
  mounted() {
    let self = this;
    this.bus.$on("ReceiveMessage", function(item) {
      self.name = item;
    })
  }
}
</script>
